#ifndef __DS1302_H_
#define __DS1302_H_

#include "config.h"

sbit DS1302_CK = P0^6;
sbit DS1302_IO = P0^7;
sbit DS1302_CE = P4^6;

void DS1302ByteWrite(u8 dat);
u8 DS1302ByteRead();
u8 DS1302SingleRead(u8 reg);
void DS1302SingleWrite(u8 reg, u8 dat);
void InitDS1302();

#endif